#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

using namespace cv;
int main(){
    //string message = "Hello Android!";
    //Size textsize = getTextSize(message, CV_FONT_HERSHEY_COMPLEX, 3, 5, 0);
    //Mat img(textsize.height + 20, textsize.width + 20, CV_8UC(4), Scalar(230,230,230,0));
    //putText(img, message, Point(10, img.rows - 10), CV_FONT_HERSHEY_COMPLEX, 3, Scalar(0, 0, 255,255), 5);

    //// save\show resulting image
    //imwrite("HelloAndroid.png", img);

    /*  FileStorage fs("D:\\learn9.txt",FileStorage::WRITE);
    fs<<"img"<<img;
    fs.release();*/

    FileStorage fs("D:\\learn9.txt",FileStorage::READ);
    Mat im;
    fs["img"]>>im;
   imshow("img",im);
  waitKey(0);
   return 0;

}